package tsing.javase.designpattern.responsibilityChain.responseChain2.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tsing.javase.designpattern.responsibilityChain.responseChain2.response.PiepleService;

/**
 * @Author Tsing/吴清平
 * @Date 2022/11/3 14:35
 * @Version 1.0
 */
@RestController
@RequestMapping("/res")
public class ResponseChanController {

    @Autowired
    private PiepleService piepleService;


    @Autowired
    private ApplicationContext context;  // spring容器

    @RequestMapping("/res")
    public String responseTest(String s){

        piepleService.method();
        return "Ok";
    }
}
